package homework;

public class 练习 {
    public static void main(String[] args) {
        //9*9乘法表
       for (int num = 1;num<=9;num++){
           for (int i =1;i<=num;i++){
               System.out.print(i+"*"+num+"="+i*num+"\t");
           }
           System.out.println();
       }
       //数组代码练习
//        int[] arr = new int[3];//0,0,0
//        int[] arr1 = {1,2,3};
//        int[] arr2 = new int[]{1,2,3};
//        int[] arr3;
//        arr3 = new int[]{1,2,3};
        int[] arr = new int[10];
        System.out.println(arr.length);
        int[] brr = new int[3];
        brr[0] = 10;
        brr[1] = 20;
        brr[2] = 30;
        System.out.println(brr[2]);
        brr[3] = 40;//





    }

}
